package com.ruoyi.yyq.domain.vo;


import com.ruoyi.yyq.domain.CarOrder;
import com.ruoyi.yyq.domain.CarServiceDetails;
import lombok.Data;

import java.math.BigDecimal;

/**
 * 订单信息对象 car_order
 * 
 * @author ruoyi
 * @date 2025-05-12
 */

@Data
public class CarOrderVo extends CarOrder {
    private String shopName;

    private CarServiceDetails carServiceDetails;

    private String statusName;

    private double ZTPrice;

    // 完整的构造函数
    public CarOrderVo(CarOrder carOrder) {
        this.setId(carOrder.getId());
        this.setVerificationCode(carOrder.getVerificationCode());
        this.setVerificationImg(carOrder.getVerificationImg());
        this.setMid(carOrder.getMid());
        this.setUid(carOrder.getUid());
        this.setServiceId(carOrder.getServiceId());
        this.setServiceTypeId(carOrder.getServiceTypeId());
        this.setOrderTime(carOrder.getOrderTime());
        this.setReservationTime(carOrder.getReservationTime());
        this.setCarId(carOrder.getCarId());
        this.setPlatformCouponId(carOrder.getPlatformCouponId());
        this.setShopCouponId(carOrder.getShopCouponId());
        this.setPrice(carOrder.getPrice());
        this.setPayTime(carOrder.getPayTime());
        this.setPayType(carOrder.getPayType());
        this.setUseTime(carOrder.getUseTime());
        this.setStatus(carOrder.getStatus());
        this.setDeleted(carOrder.getDeleted());
        this.setCreateTime(carOrder.getCreateTime());
        this.setUpdateTime(carOrder.getUpdateTime()); 
    }
}
